#include "label.h"

#include <QDebug>

Label::Label(QWidget *parent) : QLabel(parent)
{}

void Label::mousePressEvent(QMouseEvent *event)
{
    if(event->button() == Qt::LeftButton)
    {
        qDebug() << "左键";
    }
    if(event->button() == Qt::RightButton)
    {
        qDebug() << "右键";
    }
    qDebug() << event->globalX() << "," << event->globalY();
    qDebug() << event->x() << "," << event->y();
}
